//
//  BBLibraryView.h
//  xNose
//
//  Created by ben smith on 9/10/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class BBNode;
// holds all teh single node views that comprise the library


@interface BBLibraryView : NSView {
	NSRect handleRect;
	BOOL isOut;
	NSImage * background;
	NSPoint nextNodePostion;
	NSView * viewHolder;
	float verticalOffset;
	float zoom;
	NSButton * openButton;
	float tabInX;
	float tabOutX;
}

- (id)initWithFrame:(NSRect)frame ;
- (void) dealloc;
- (void)addNodeView:(BBNode*)aNode animate:(BOOL)animate ;
- (void)addNodeView:(BBNode*)aNode;
- (void)adjustVertical:(float)f animate:(BOOL)b;
- (void)adjustVertical:(float)f;
- (void)bulbClick;
- (void)closeTab;
- (void)closeTabNotification:(id)sender;
- (void)connectClick;
- (void)drawRect:(NSRect)rect ;
- (void)initNodeViews;
- (void)mouseDown:(NSEvent*)theEvent;
- (void)oneClick;
- (void)openTab;
- (void)otherMouseDown:(NSEvent*)theEvent;
- (void)removeNodeView:(BBNode*)aNode;
- (void)resetNodeViewPositionsAnimate:(BOOL)animate;
- (void)threeClick;
- (void)twoClick;
- (void)zoomClick;

// 21 methods

@end
